<template>
<div>
<!--  <p v-for="(item,index) in text1" :key="index">-->
<!--&lt;!&ndash;    {{item}}&ndash;&gt;-->
<!--  </p>-->
  <p>{{text1[0].attend}}}</p>
  <img :src="text1[0].attend"  style="width: 100px;height: 100px" alt="">
  <h2 style="color: cyan">哈哈哈哈哈哈哈哈啊哈</h2>
</div>
</template>

<script>
import axios from "axios";

export default {
  name: "text",
  data(){
    return {
      text1:[]
    }
  }  ,
  methods:{
    text(){
      axios ({
        url:"/user/DaPing",
        method:"get",
        params:{}
      }).then(res=>{
        this.text1=res.data
      })
    }
  },
  created() {
    this.text()
  }
}
</script>

<style scoped>
p{
  background-color: yellow;
}
</style>
